Method: HTML5::AfterBodyPhase#processComment
- Defined in:
- lib/html5/html5parser/after_body_phase.rb
#processComment(data) ⇒ Object
8 9 10 11 12 |
# File 'lib/html5/html5parser/after_body_phase.rb', line 8 def processComment(data) # This is needed because data is to be appended to the <html> element # here and not to whatever is currently open. @tree.insert_comment(data, @tree.open_elements.first) end |