 		constructor: (a...) ->
 			a[0] = "OPTGROUP"
 			super a...
-	option: class HTMLOptionElement extends HTMLElement
+	option: class HTMLOptionElement extends HTMLInputElement
 		constructor: (a...) ->
 			a[0] = "OPTION"
 			super a...

Element::__defineGetter__ 'textContent', getInnerText
Element::__defineSetter__ 'innerText', setInnerText
Element::__defineSetter__ 'textContent', setInnerText

class Attr extends Node
	constructor: (name, value) ->

		return ret
	# attributes
	getAttribute: (name) ->
		@attributes[name] or ""
	getAttributeNode: (name) ->
		n = new Attr(name, @getAttribute(name))
		n.ownerElement = @
