Parent

Class/Module Index [+]

Quicksearch

HTML5::InFramesetPhase

Public Instance Methods

endTagFrameset(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 34
def endTagFrameset(name)
  if @tree.open_elements.last.name == 'html'
    # inner_html case
    parse_error("unexpected-frameset-in-frameset-innerhtml")
  else
    @tree.open_elements.pop
  end
  if (not @parser.inner_html and
    @tree.open_elements.last.name != 'frameset')
    # If we're not in inner_html mode and the the current node is not a
    # "frameset" element (anymore) then switch.
    @parser.phase = @parser.phases[:afterFrameset]
  end
end
endTagNoframes(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 49
def endTagNoframes(name)
  @parser.phases[:inBody].processEndTag(name)
end
endTagOther(name) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 53
def endTagOther(name)
  parse_error("unexpected-end-tag-in-frameset", {"name" => name})
end
processCharacters(data) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 12
def processCharacters(data)
  parse_error("unexpected-char-in-frameset")
end
startTagFrame(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 20
def startTagFrame(name, attributes)
  @tree.insert_element(name, attributes)
  @tree.open_elements.pop
end
startTagFrameset(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 16
def startTagFrameset(name, attributes)
  @tree.insert_element(name, attributes)
end
startTagNoframes(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 25
def startTagNoframes(name, attributes)
  @parser.phases[:inBody].processStartTag(name, attributes)
end
startTagOther(name, attributes) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/html5parser/in_frameset_phase.rb, line 29
def startTagOther(name, attributes)
  parse_error("unexpected-start-tag-in-frameset",
        {"name" => name})
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.