mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-08 14:58:42 +00:00
Add initial version of advanced API specification, also add <q> tag fix.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@768 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
4169846c57
commit
299f93f8f0
39
docs/dev-advanced-api.html
Normal file
39
docs/dev-advanced-api.html
Normal file
@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="description" content="Functional specification for HTML Purifier's advanced API." />
|
||||
<link rel="stylesheet" type="text/css" href="style.css" />
|
||||
|
||||
<title>Advanced API - HTML Purifier</title>
|
||||
|
||||
</head><body>
|
||||
|
||||
<h1>Advanced API</h1>
|
||||
|
||||
<div id="filing">Filed under Development</div>
|
||||
<div id="index">Return to the <a href="index.html">index</a>.</div>
|
||||
<div id="home"><a href="http://hp.jpsband.org/">HTML Purifier</a> End-User Documentation</div>
|
||||
|
||||
<p>It makes no sense to adopt a <q>one-size-fits-all</q> approach to
|
||||
filtersets: therefore, users must be able to define their own sets of
|
||||
<q>allowed</q> elements, as well as switch in-between doctypes of HTML.</p>
|
||||
|
||||
<p>Our goals (pending reorganization):</p>
|
||||
|
||||
<ul>
|
||||
<li>Easily switch from one doctype to another,</li>
|
||||
<li>Create own doctype, possibly non-HTML based,</li>
|
||||
<li>Select a custom set of tags and attributes,</li>
|
||||
<li>Select XHTML 1.1 style modules,</li>
|
||||
<li>Switch on/off <q>dangerous</q> tags,</li>
|
||||
<li>Define custom behavior for pre-existing tags,</li>
|
||||
<li>Define custom tags for their own use,</li>
|
||||
<li>Define custom attribute type / override existing one,</li>
|
||||
<li>Change the root node which fragment will be inserted in.</li>
|
||||
</ul>
|
||||
|
||||
<div id="version">$Id: dev-optimization.html 655 2007-01-18 22:38:40Z Edward $</div>
|
||||
|
||||
</body></html>
|
6
docs/fixquotes.htc
Normal file
6
docs/fixquotes.htc
Normal file
@ -0,0 +1,6 @@
|
||||
<public:attach event="oncontentready" onevent="init();" />
|
||||
<script>
|
||||
function init() {
|
||||
element.innerHTML = '“'+element.innerHTML+'”';
|
||||
}
|
||||
</script>
|
@ -46,3 +46,14 @@ blockquote .label {font-weight:bold; font-size:1em; margin:0 0 .1em;
|
||||
#toc ol ol {list-style-type:lower-roman;}
|
||||
#toc ol {list-style-type:decimal;}
|
||||
#toc {list-style-type:upper-alpha;}
|
||||
|
||||
q {
|
||||
behavior: url(fixquotes.htc); /* IE fix */
|
||||
quotes: '\201C' '\201D' '\2018' '\2019';
|
||||
}
|
||||
q:before {
|
||||
content: open-quote;
|
||||
}
|
||||
q:after {
|
||||
content: close-quote;
|
||||
}
|
Loading…
Reference in New Issue
Block a user