Implement ProcessingInstruction DOM interface

Spec:
http://dom.spec.whatwg.org/#interface-processinginstruction

Closes #1619.
This commit is contained in:
Bruno de Oliveira Abinader 2014-02-05 11:14:47 -04:00
parent 5a7d22c437
commit aa4b5bb948
8 changed files with 153 additions and 56 deletions

View file

@ -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')