Implement ParentNode.children for Document and Element

Also implement it for DocumentFragment
This commit is contained in:
Tom Schuster 2014-04-19 22:23:13 +02:00
parent e332f2f0fe
commit 4c057deaf9
9 changed files with 67 additions and 5 deletions

View file

@ -30,6 +30,7 @@ DOMInterfaces = {
'anchors',
'applets',
'body',
'children',
'createComment',
'createDocumentFragment',
'createElement',
@ -56,6 +57,7 @@ DOMInterfaces = {
'Element': {
'needsAbstract': [
'attributes',
'children',
'className',
'getAttribute',
'getAttributeNS',
@ -135,7 +137,7 @@ def addHTMLElement(element, concrete=None, needsAbstract=[]):
}
addHTMLElement('Comment')
addHTMLElement('DocumentFragment', concrete='DocumentFragment')
addHTMLElement('DocumentFragment', concrete='DocumentFragment', needsAbstract=['children'])
addHTMLElement('DocumentType')
addHTMLElement('Text')
addHTMLElement('ProcessingInstruction')