2007-07-05 00:36:59 +02:00
|
|
|
require 'html5/html5parser/phase'
|
2007-05-30 17:45:52 +02:00
|
|
|
|
2007-07-05 00:36:59 +02:00
|
|
|
module HTML5
|
2007-05-30 17:45:52 +02:00
|
|
|
class AfterFramesetPhase < Phase
|
|
|
|
|
|
|
|
# http://www.whatwg.org/specs/web-apps/current-work/#after3
|
|
|
|
|
|
|
|
handle_start 'html', 'noframes'
|
|
|
|
|
|
|
|
handle_end 'html'
|
|
|
|
|
|
|
|
def processCharacters(data)
|
2007-09-10 05:26:19 +02:00
|
|
|
parse_error("unexpected-char-after-frameset")
|
2007-05-30 17:45:52 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def startTagNoframes(name, attributes)
|
|
|
|
@parser.phases[:inBody].processStartTag(name, attributes)
|
|
|
|
end
|
|
|
|
|
|
|
|
def startTagOther(name, attributes)
|
2007-09-10 05:26:19 +02:00
|
|
|
parse_error("unexpected-start-tag-after-frameset", {"name" => name})
|
2007-05-30 17:45:52 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def endTagHtml(name)
|
2007-08-30 19:19:10 +02:00
|
|
|
@parser.last_phase = @parser.phase
|
|
|
|
@parser.phase = @parser.phases[:trailingEnd]
|
2007-05-30 17:45:52 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def endTagOther(name)
|
2007-09-10 05:26:19 +02:00
|
|
|
parse_error("unexpected-end-tag-after-frameset", {"name" => name})
|
2007-05-30 17:45:52 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|