Sync with latest HTML5lib
This commit is contained in:
parent
3a3cfeaa9b
commit
55fdc9fff4
18 changed files with 266 additions and 124 deletions
|
@ -99,12 +99,13 @@ module HTML5
|
|||
super nil
|
||||
end
|
||||
|
||||
def appendChild node
|
||||
if node.kind_of? Element and node.name == 'html'
|
||||
node.rxobj.add_namespace('http://www.w3.org/1999/xhtml')
|
||||
end
|
||||
super node
|
||||
end
|
||||
# ryansking: not sure why this was here. removing it doesn't cause any tests to fail
|
||||
# def appendChild node
|
||||
# if node.kind_of? Element and node.name == 'html'
|
||||
# node.rxobj.add_namespace('http://www.w3.org/1999/xhtml')
|
||||
# end
|
||||
# super node
|
||||
# end
|
||||
|
||||
def printTree indent=0
|
||||
tree = "#document"
|
||||
|
|
|
@ -176,7 +176,7 @@ module HTML5
|
|||
|
||||
def get_fragment
|
||||
@document = super
|
||||
@document.childNodes
|
||||
@document
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue