Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to fix div.sheet-madness bug #665

Merged
merged 1 commit into from
Mar 9, 2015
Merged

Conversation

Lithl
Copy link
Contributor

@Lithl Lithl commented Mar 9, 2015

Per this
thread
,
the first selector is not being processed. Because this sheet makes use
of the unicode character Heavy Multiplication X (0x2716), and Roll20's
CSS sanitation process throws out the entire thing if a backslash is
detected, the file must be saved as Unicode. This means the file begins
with the byte-order mark 0xFEFF.

This commit is assuming that the BOM is being inserted into the style
element right next to the ".charsheet" (or right next to the "div") at
the start, which obviously does not match any element on the page, as
there is neither an element <0xFEFF class="charsheet"> nor an element
<0xFEFFdiv class="sheet-madness">. As a result, a newline has been
inserted between the BOM and "div" in the hope that the problem will not
persist.

Per [this
thread](https://app.roll20.net/forum/post/1691256/css-selector-not-being-processed#post-1691256),
the first selector is not being processed. Because this sheet makes use
of the unicode character Heavy Multiplication X (0x2716), and Roll20's
CSS sanitation process throws out the entire thing if a backslash is
detected, the file must be saved as Unicode. This means the file begins
with the byte-order mark 0xFEFF.

This commit is assuming that the BOM is being inserted into the style
element right next to the ".charsheet" (or right next to the "div") at
the start, which obviously does not match any element on the page, as
there is neither an element `<0xFEFF class="charsheet">` nor an element
`<0xFEFFdiv class="sheet-madness">`. As a result, a newline has been
inserted between the BOM and "div" in the hope that the problem will not
persist.
SteveKoontz pushed a commit that referenced this pull request Mar 9, 2015
Attempt to fix div.sheet-madness bug
@SteveKoontz SteveKoontz merged commit a15365f into Roll20:master Mar 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants