Explicitly initialize anonModule to null.
[htmlpurifier.git] / docs / proposal-colors.html
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6 <meta name="description" content="Proposal to allow for color constraints in HTML Purifier." />
7 <link rel="stylesheet" type="text/css" href="./style.css" />
9 <title>Proposal: Colors - HTML Purifier</title>
11 </head><body>
13 <h1 class="subtitled">Colors</h1>
14 <div class="subtitle">Hammering some sense into those color-blind newbies</div>
16 <div id="filing">Filed under Proposals</div>
17 <div id="index">Return to the <a href="index.html">index</a>.</div>
18 <div id="home"><a href="http://htmlpurifier.org/">HTML Purifier</a> End-User Documentation</div>
20 <p>Your website probably has a color-scheme.
21 <span style="color:#090; background:#FFF;">Green on white</span>,
22 <span style="color:#A0F; background:#FF0;">purple on yellow</span>,
23 whatever. When you give users the ability to style their content, you may
24 want them to keep in line with your styling. If you're website is all
25 about light colors, you don't want a user to come in and vandalize your
26 page with a deep maroon.</p>
28 <p>This is an extremely silly feature proposal, but I'm writing it down anyway.</p>
30 <p>What if the user could constrain the colors specified in inline styles? You
31 are only allowed to use these shades of dark green for text and these shades
32 of light yellow for the background. At the very least, you could ensure
33 that we did not have pale yellow on white text.</p>
35 <h2>Implementation issues</h2>
37 <ol>
38 <li>Requires the color attribute definition to know, currently, what the text
39 and background colors are. This becomes difficult when classes are thrown
40 into the mix.</li>
41 <li>The user still has to define the permissible colors, how does one do
42 something like that?</li>
43 </ol>
45 </body>
46 </html>
48 <!-- vim: et sw=4 sts=4
49 -->