RejectedSoftware Forums

Sign up

Embedded javascript

Hi. It's a long time since I updated vibe, and now I get a warning I'm
not sure how to fix.

Warning: Use an explicit text block 'script(type="text/javascript").'<br>for embedded css/javascript - old behavior will be removed soon

My code looks like script(type="text/javascript"), so this message
seems a little odd. Shouldn't it state what I should change the code to
rather than what it already is?

So how should I fix this?

Re: Embedded javascript

Am 24.08.2014 13:26, schrieb simendsjo:

Hi. It's a long time since I updated vibe, and now I get a warning I'm
not sure how to fix.

Warning: Use an explicit text block 'script(type="text/javascript").'<br>for embedded css/javascript - old behavior will be removed soon

My code looks like script(type="text/javascript"), so this message
seems a little odd. Shouldn't it state what I should change the code to
rather than what it already is?

So how should I fix this?

It's the "." at the end that needs to be added. I'll mention this
explicitly in the warning message.

Re: Embedded javascript

On 08/24/2014 01:40 PM, Sönke Ludwig wrote:

Am 24.08.2014 13:26, schrieb simendsjo:

Hi. It's a long time since I updated vibe, and now I get a warning I'm
not sure how to fix.

Warning: Use an explicit text block 'script(type="text/javascript").'<br>for embedded css/javascript - old behavior will be removed soon

My code looks like script(type="text/javascript"), so this message
seems a little odd. Shouldn't it state what I should change the code to
rather than what it already is?

So how should I fix this?

It's the "." at the end that needs to be added. I'll mention this
explicitly in the warning message.

Ah, thanks. I see the dot is within the ' ' now, but it was easy to miss :)