mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
Implement ProcessingInstruction DOM interface
Spec: http://dom.spec.whatwg.org/#interface-processinginstruction Closes #1619.
This commit is contained in:
parent
5a7d22c437
commit
aa4b5bb948
8 changed files with 153 additions and 56 deletions
|
@ -583,6 +583,7 @@ def addExternalIface(iface, nativeType=None, headerFile=None, pointerType=None):
|
|||
domInterface['pointerType'] = pointerType
|
||||
DOMInterfaces[iface] = domInterface
|
||||
|
||||
# FIXME: This should be renamed: https://github.com/mozilla/servo/issues/1625
|
||||
def addHTMLElement(element, concrete=None, needsAbstract=[]):
|
||||
DOMInterfaces[element] = {
|
||||
'nativeType': 'AbstractNode',
|
||||
|
@ -596,6 +597,7 @@ addHTMLElement('Comment')
|
|||
addHTMLElement('DocumentFragment', concrete='DocumentFragment')
|
||||
addHTMLElement('DocumentType')
|
||||
addHTMLElement('Text')
|
||||
addHTMLElement('ProcessingInstruction')
|
||||
|
||||
addHTMLElement('HTMLAnchorElement')
|
||||
addHTMLElement('HTMLAppletElement')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue