Completed
Last Updated: 11 Sep 2019 06:17 by ADMIN
Release R3 2019
Borislav
Created on: 19 Aug 2019 07:11
Category: WordsProcessing
Type: Bug Report
0
WordsProcessing: HtmlImportSettings.LoadFromUri event is not raised for stylesheet links without specified css type

The construct <link rel="stylesheet" href="main.min.css" /> doesn't raise the HtmlImportSettings.LoadFromUri event on import, as we currently require type="text\css" to be specified explicitly.

According to mdn:
The common use of this attribute is to define the type of stylesheet being referenced (such as text/css), but given that CSS is the only stylesheet language used on the web, not only is it possible to omit the type attribute, but is actually now recommended practice. 


Think of improving the message of the exception we throw if no data is loaded.

Workaround: set type explicitly:
<link rel="stylesheet" type="text/csshref="main.min.css" />

0 comments