diff options
author | Zach Copley <zach@status.net> | 2010-10-29 23:38:00 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-10-29 23:38:00 +0000 |
commit | 2c420cc5eba9cd89b9daf0e10c750a34672a4795 (patch) | |
tree | 0fb8fb7d0cd03fe5d4c782f13fe1942804d0092b /lib/htmloutputter.php | |
parent | 456f4a65732e8534f425e0ac9c72f17ff7de25d3 (diff) |
New Start/EndHtmlElement events. Allows adding namespaces.
Diffstat (limited to 'lib/htmloutputter.php')
-rw-r--r-- | lib/htmloutputter.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 42bff4490..b341d1495 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -119,9 +119,16 @@ class HTMLOutputter extends XMLOutputter $language = $this->getLanguage(); - $this->elementStart('html', array('xmlns' => 'http://www.w3.org/1999/xhtml', - 'xml:lang' => $language, - 'lang' => $language)); + $attrs = array( + 'xmlns' => 'http://www.w3.org/1999/xhtml', + 'xml:lang' => $language, + 'lang' => $language + ); + + if (Event::handle('StartHtmlElement', array($this, &$attrs))) { + $this->elementStart('html', $attrs); + Event::handle('EndHtmlElement', array($this, &$attrs)); + } } function getLanguage() |