Skip to content

Commit

Permalink
document new configuration parameter to html mixed parser
Browse files Browse the repository at this point in the history
  • Loading branch information
marijnh committed Oct 8, 2010
1 parent 01ded91 commit 58441a0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion js/parsehtmlmixed.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var HTMLMixedParser = Editor.Parser = (function() {
else if (token.content == ">") {
if (triggers[inTag]) {
var parser = window[triggers[inTag]];
iter.next = local(parser, "</"+inTag);
iter.next = local(parser, "</" + inTag);
}
inTag = false;
}
Expand Down
12 changes: 8 additions & 4 deletions manual.html
Original file line number Diff line number Diff line change
Expand Up @@ -430,11 +430,15 @@ <h2 id="parsers">Parsers</h2>
<dt><code><a
href="js/parsehtmlmixed.js">parsehtmlmixed.js</a></code> (<a
href="mixedtest.html">demo</a>)</dt><dd>A mixed-mode HTML
parser. Requires the XML, JavaScript, and CSS parsers to also be
loaded, so your <code>parserfile</code> option looks something
like <code>["parsexml.js", "parsecss.js",
parser. By default, requires the XML, JavaScript, and CSS
parsers to also be loaded, so your <code>parserfile</code>
option looks something like <code>["parsexml.js", "parsecss.js",
"tokenizejavascript.js", "parsejavascript.js",
"parsehtmlmixed.js"]</code>.</dd>
"parsehtmlmixed.js"]</code>. This parser accepts a configuration
object with a <code>triggers</code> property to configure which
parser should be invoked for which tag. The default looks like
this (property names are tags, values are parser names):
<code>{script: "JSParser", style: "CSSParser"}</code></dd>

<dt><code><a href="js/parsesparql.js">parsesparql.js</a></code>
(<a href="sparqltest.html">demo</a>)</dt><dd>Parses the <a
Expand Down

0 comments on commit 58441a0

Please sign in to comment.