Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Allow crossorigin attribute in headScript #6634

Closed

Conversation

marek-saji
Copy link
Contributor

@froschdesign
Copy link
Member

Here the official W3C description: http://www.w3.org/TR/html5/scripting-1.html#attr-script-crossorigin

@@ -83,7 +83,7 @@ class HeadScript extends Placeholder\Container\AbstractStandalone
*
* @var array
*/
protected $optionalAttributes = array('charset', 'defer', 'language', 'src');
protected $optionalAttributes = array('charset', 'crossorigin', 'defer', 'language', 'src');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also change this to one-per-line for easier diffing in future?

@Ocramius
Copy link
Member

Rebased, added tests, merged. Thanks @marek-saji

master: a621bde
develop: 93190bf

gianarb pushed a commit to zendframework/zend-view that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-view that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-view that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-view that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-view that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants