+ public function createElementStyle($styledata) {
+ $style_elem = $this->createElement('style');
+ // Note: type can/should be left out for HTML5.
+ $style_elem->setAttribute('type', 'text/css');
+ $style_elem->appendChild($this->createCDATASection($styledata));
+ return $style_elem;
+ }
+