Skip to content

Commit

Permalink
Merge branch 't/8117'
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Jul 7, 2014
2 parents 2888e46 + 87b7d8e commit afc35ce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -12,6 +12,7 @@ Fixed Issues:
* [#12132](http://dev.ckeditor.com/ticket/12132): Fixed: Image is inserted with `width` and `height` styles even when they are not allowed.
* [#9317](http://dev.ckeditor.com/ticket/9317): [IE] Fixed: [`config.disableObjectResizing`](http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-disableObjectResizing) does not work on IE. **Note**: We were not able to fix this issue on IE11+ because necessary events stopped working. See a [last resort workaround](http://dev.ckeditor.com/ticket/9317#comment:16) and make sure to [support our complaint](https://connect.microsoft.com/IE/feedback/details/742593/please-respect-execcommand-enableobjectresizing-in-contenteditable-elements).
* [#9638](http://dev.ckeditor.com/ticket/9638): Fixed: There should be no information about accessibility help available under `ALT+0` keystroke if the `a11yhelp` plugin is not available.
* [#8117](http://dev.ckeditor.com/ticket/8117) and [#9186](http://dev.ckeditor.com/ticket/9186) Fixed: In HTML5 `<meta>` tags should be allowed everywhere, including `<body>`.

## CKEditor 4.4.2

Expand Down
5 changes: 4 additions & 1 deletion core/htmldataprocessor.js
Expand Up @@ -861,7 +861,10 @@
( /<script[\s\S]*?<\/script>/gi ),

// <noscript> tags (get lost in IE and messed up in FF).
/<noscript[\s\S]*?<\/noscript>/gi
/<noscript[\s\S]*?<\/noscript>/gi,

// Avoid meta tags being stripped (#8117).
/<meta[\s\S]*?\/?>/gi
].concat( protectRegexes );

// First of any other protection, we must protect all comments
Expand Down
4 changes: 4 additions & 0 deletions tests/core/htmldataprocessor.js
Expand Up @@ -561,6 +561,10 @@
'test protected source in iframe': addProtectedSourceTC( '<p><iframe name="aa">[[mytag]]</iframe></p>' ),
'test protected source in textarea': addProtectedSourceTC( '<p><textarea name="aa">[[mytag]]</textarea></p>' ),
'test protected source in textarea multiline': addProtectedSourceTC( '<p><textarea name="aa">[[aa]]\n[[bb]]</textarea></p>' ),
// Meta tags should be allowed in any element. (#8117)
'test meta tag in paragraph': addProtectedSourceTC( '<p><meta itemprop="best" content="10" /></p>' ),
'test meta tag directly in body': addProtectedSourceTC( '<meta itemprop="familyName" content="McFoobar" /><p>x</p>' ),
'test specially formatted meta tag': addProtectedSourceTC( '<META itemprop="familyName"\tcontent="McFoobar"><p>x</p>' ),

'test values of attributes are not protected': function() {
var processor = this.editor.dataProcessor,
Expand Down

0 comments on commit afc35ce

Please sign in to comment.