Coder Social home page Coder Social logo

Comments (6)

featdd avatar featdd commented on July 23, 2024

Hi @quadronet,

could you please provide further details!?

Greetings
Daniel

from mindshape_cookie_consent.

quadronet avatar quadronet commented on July 23, 2024

Yes i can, in your RenderPreProcessHook.php you use the type attribute for javascript:
$pageRenderer->addHeaderData('<script type="text/javascript"

https://validator.w3.org/ show an error:

Warning: The type attribute is unnecessary for JavaScript resources.
s.de/"/><script type="text/javascript" data-ignore="1">

from mindshape_cookie_consent.

featdd avatar featdd commented on July 23, 2024

Thats strange as it is valid html and also the typo3 core sets the type attribute by default.
I'll do some research for that, in the meantime don't panic, its a lax warning browsers pagespeed etc. won't be angry about it.

from mindshape_cookie_consent.

featdd avatar featdd commented on July 23, 2024

@quadronet as of html 5.2 the type attribute should be omitted, so I will remove it in the next update.

See:
https://stackoverflow.com/questions/4195427/is-the-type-attribute-necessary-for-script-tags/4195504#4195504
https://www.w3.org/TR/html52/semantics-scripting.html#element-attrdef-script-type

from mindshape_cookie_consent.

featdd avatar featdd commented on July 23, 2024

solved in dec2479

from mindshape_cookie_consent.

flonor1 avatar flonor1 commented on July 23, 2024

Hy @featdd
just saw that when embedding the JS type="text/javascript" is still present. Unfortunately I didn't find out where this comes from (didn't find it anywhere in the extension, maybe it comes from TYPO3?).
Is it still possible to remove this, since W3C shows a warning.

from mindshape_cookie_consent.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.