when trying to appendHtml text where is <table> tag class applied that have "width" parameter with "!important", "Unknown char" error is thrown:
- Code: Select all
<style type="text/css">
table.wrapper {
width: 100% !important;
}
</style>
<body>
<div>
<table class="wrapper"></table>
</div>
</body>
The same issue is thrown when style with "!important" is applied directly to <table> tag:
- Code: Select all
<body>
<div>
<table style="width: 100% !important;"></table>
</div>
</body>
When !important is removed, everything is fine
- Code: Select all
<style type="text/css">
table.wrapper {
width: 100%;
}
</style>
<body>
<div>
<table class="wrapper"></table>
</div>
</body>
Also if class is applied with !important to another tag, e.g. <div>, everything works fine