Class: HTML5::XmlRootPhase
- Defined in:
- lib/feed_tools/vendor/html5/lib/html5/liberalxmlparser.rb
Instance Method Summary collapse
Methods inherited from Phase
#assert, end_tag_handlers, handle_end, handle_start, #in_scope?, #initialize, #processComment, #processDoctype, #processEndTag, #processSpaceCharacters, #processStartTag, #process_eof, #remove_open_elements_until, #startTagHtml, start_tag_handlers, tag_handlers
Constructor Details
This class inherits a constructor from HTML5::Phase
Instance Method Details
#endTagOther(name) ⇒ Object
124 125 126 127 |
# File 'lib/feed_tools/vendor/html5/lib/html5/liberalxmlparser.rb', line 124 def endTagOther(name) super @tree.open_elements.pop end |
#startTagOther(name, attributes) ⇒ Object
117 118 119 120 121 122 123 |
# File 'lib/feed_tools/vendor/html5/lib/html5/liberalxmlparser.rb', line 117 def startTagOther(name, attributes) @tree.open_elements.push(@tree.document) element = @tree.createElement(name, attributes) @tree.open_elements[-1].appendChild(element) @tree.open_elements.push(element) @parser.phase = XmlElementPhase.new(@parser,@tree) end |