RML <link type="text/script" .../> doesn't work
Closed this issue · 2 comments
<link type="text/script" .../> doesnt work, even tho it's stated in the docs, that it should.
it gives the error:
assets/rml/main.rml:5: Invalid link type 'text/script'
it's not a big thing, one can always use <script> tag, but it just looks inconsistent with rcss includes
PS: I've looked it up in the source code, it should be trivial to implement
Hey, and thanks for letting me know! This type is indeed not supported for link tags. This tag is not supposed to be used in this way either, just like it doesn't work in HTML.
The proper way to link to script files is to use <script src="...">.
I pushed a commit to improve the documentation, hopefully that clarifies things:
mikke89/RmlUiDoc@55d760a
I hoped link would accept script files, right now it just looks wrong:
<head>
<link type="text/rcss" href="..."/>
<link type="text/template" href="..."/>
<script src="..."><script/>
</head>
like, I'am not embedding any code, just including a file and <link > is for including files.
RML is not HTML anyway, there's stuff added on top already, I think adding "text/script" support would be nice.
Anyway, thanks for clearing it up!