Method: HTML5::InSelectPhase#startTagOption

Defined in:
lib/html5/html5parser/in_select_phase.rb

#startTagOption(name, attributes) ⇒ Object



16
17
18
19
20
# File 'lib/html5/html5parser/in_select_phase.rb', line 16

def startTagOption(name, attributes)
  # We need to imply </option> if <option> is the current node.
  @tree.open_elements.pop if @tree.open_elements.last.name == 'option'
  @tree.insert_element(name, attributes)
end