Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2476

Support to plug a different parser for parsing a page

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Such as ZHTML page should be able to contain a HTML syntax that parser won't raise any exception on it.
      For example,

      <html>
      	<head>
      		 <!--[if lte IE 9]>
      			<link rel="stylesheet" href="../assets/css/test.min.css" />
      		<![endif]-->
      	</head>
      <body>
      <u:window xmlns:u="zul" title="test" id="mainWindow" apply="org.zkoss.bind.BindComposer"
      	viewModel="@id('vm') @init('test.MyVM')" height="100%" width="100%">
      	&copy Test
      </u:window>
      </body>
      </html>
      

        Activity

        Hide
        jumperchen jumperchen added a comment -

        Ready since 10/1/2014.
        The default zhtml project will use HTML tree builder to parse the HTML5 syntax, if the developer wants to change the tree builder, they can provide their own lang-addon.xml and then specify the treebuilder-class, for example,

        <treebuilder-class>org.zkoss.zhtml.impl.HtmlTreeBuilder</treebuilder-class>
        
        Show
        jumperchen jumperchen added a comment - Ready since 10/1/2014. The default zhtml project will use HTML tree builder to parse the HTML5 syntax, if the developer wants to change the tree builder, they can provide their own lang-addon.xml and then specify the treebuilder-class , for example, <treebuilder-class>org.zkoss.zhtml.impl.HtmlTreeBuilder</treebuilder-class>

          People

          • Assignee:
            jumperchen jumperchen
            Reporter:
            jumperchen jumperchen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: