I'm looking at LPP-8898, regarding the munging of HTML content in <text> views
http://jira.openlaszlo.org/jira/browse/LPP-8898 Tucker and Max suggested passing the HTML content verbatim (including whitespace) from the LZX to the compiled javascript for the runtime. At first I thought I could do this by just passing the content verbatim, but we allow many LZX tags inside of text content, e.g., <text>This is some text <handler name="oninit"> ... </handler> And some <b>more</b> <method name="foo" args="a,b"> ... </method> <attribute name="foo" ...../> </text> So, currently, the LZX compiler has a little scanner that looks for known HTML tags, and does some processing. Whitespace is normalized away by default, unless the <pre> tag is seen: P, BR PRE sets verbatim (literal whitespace) mode face control: B, I, FONT tags modify the font A [href] indicates a hyperlink Any other tags are ignored. Do we want to change this mechanism? Should we have a "whitelist" of LZX tags rather than whitelist of HTML tags? -- Henry Minsky Software Architect [email protected]
