Skip to content

CSS files with UTF-8 BOM triggers CSS errors #192

@alitokmen

Description

@alitokmen

I noticed that if a CSS file has a UTF-8 BOM then HtmlUnit seems to not like it - It throws a CSS error:

com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error
WARNING: CSS error: 'http://localhost:59425/cargo-daemon-webapp/cargo.css' [38:1] Error in style rule. (Invalid token "body". Was expecting one of: <S>, <LBRACE>, <COMMA>.)

The UTF-8 BOM doesn't seem to "bother" Web browsers, could HtmlUnit also be updated to behave similarly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions