Class | HTML5::InFramesetPhase |
In: |
lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb
|
Parent: | Phase |
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 34 34: def endTagFrameset(name) 35: if @tree.open_elements.last.name == 'html' 36: # inner_html case 37: parse_error("unexpected-frameset-in-frameset-innerhtml") 38: else 39: @tree.open_elements.pop 40: end 41: if (not @parser.inner_html and 42: @tree.open_elements.last.name != 'frameset') 43: # If we're not in inner_html mode and the the current node is not a 44: # "frameset" element (anymore) then switch. 45: @parser.phase = @parser.phases[:afterFrameset] 46: end 47: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 49 49: def endTagNoframes(name) 50: @parser.phases[:inBody].processEndTag(name) 51: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 53 53: def endTagOther(name) 54: parse_error("unexpected-end-tag-in-frameset", {"name" => name}) 55: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 12 12: def processCharacters(data) 13: parse_error("unexpected-char-in-frameset") 14: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 20 20: def startTagFrame(name, attributes) 21: @tree.insert_element(name, attributes) 22: @tree.open_elements.pop 23: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 16 16: def startTagFrameset(name, attributes) 17: @tree.insert_element(name, attributes) 18: end
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 25 25: def startTagNoframes(name, attributes) 26: @parser.phases[:inBody].processStartTag(name, attributes) 27: end