Github user solomax commented on a diff in the pull request:

    https://github.com/apache/wicket/pull/343#discussion_r238202582
  
    --- Diff: 
wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js 
---
    @@ -2116,10 +2116,15 @@
     
                        // Adds the element to page head
                        addElement: function (element) {
    -                           var head = 
document.getElementsByTagName("head");
    +                           var headItems = document.querySelector('head 
meta[name="wicket.header.items"]');
    --- End diff --
    
    According to this table [1] `querySelector` is being supported by all 
browsers ...
    
    [1] 
https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector#Browser_Compatibility


---

Reply via email to