summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-29 23:38:00 +0000
committerZach Copley <zach@status.net>2010-10-29 23:38:00 +0000
commit2c420cc5eba9cd89b9daf0e10c750a34672a4795 (patch)
tree0fb8fb7d0cd03fe5d4c782f13fe1942804d0092b /lib
parent456f4a65732e8534f425e0ac9c72f17ff7de25d3 (diff)
New Start/EndHtmlElement events. Allows adding namespaces.
Diffstat (limited to 'lib')
-rw-r--r--lib/htmloutputter.php13
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()