Followup r111903; Introduce a new Tidy hack to prevent tidy from stripping the <link...
authorDaniel Friesen <dantman@users.mediawiki.org>
Mon, 20 Feb 2012 02:12:48 +0000 (02:12 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Mon, 20 Feb 2012 02:12:48 +0000 (02:12 +0000)
commita76e8f10c49a9ee0902d00d9d12df1c8b8573a29
tree2fd1d3610ea1c30a7aa00b818c32a4783a699b37
parentdf86a5ca0eaebf2c0fd5505533db32a8b4b7e6a3
Followup r111903; Introduce a new Tidy hack to prevent tidy from stripping the <link> and <meta> elements from the body which are used in Microdata.
We do this by replacing every <link> and <meta> with a <html-link> or <html-meta> element and adding html-link and html-meta to tidy's new-empty-tags config so that Tidy doesn't strip it, and then restoring the <html-*> elements back to normal.
includes/parser/Tidy.php
includes/tidy.conf