Github user martin-g commented on a diff in the pull request:
https://github.com/apache/wicket/pull/173#discussion_r70273931
--- Diff:
wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
---
@@ -2117,11 +2117,11 @@
// create link element
var css =
Wicket.Head.createElement("link");
- // copy required attributes
- css.id =
node.getAttribute("id");
- css.rel =
node.getAttribute("rel");
- css.href =
node.getAttribute("href");
- css.type =
node.getAttribute("type");
+ // copy supplied attributes
only.
+ for (var attrIdx = 0; attrIdx <
node.attributes.length; attrIdx++) {
+ var attr =
node.attributes[attrIdx];
+
css.setAttribute(attr.name, attr.value)
+ }
--- End diff --
Let's use jQuery for that.
See http://stackoverflow.com/a/14645827/497381 for a way to list the
attributes and then use `$.attr()` to set it.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---