mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Implement ParentNode.children for Document and Element
Also implement it for DocumentFragment
This commit is contained in:
parent
e332f2f0fe
commit
4c057deaf9
9 changed files with 67 additions and 5 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue