Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds QueryString to the html page title on IE #54

Open
WesamZia opened this issue Dec 9, 2014 · 6 comments
Open

Adds QueryString to the html page title on IE #54

WesamZia opened this issue Dec 9, 2014 · 6 comments

Comments

@WesamZia
Copy link

WesamZia commented Dec 9, 2014

Once navigated to the page with clip-copy directive used in, the page title will become
Assigned pagetitle Plus (htmlpagetitle#/htmlpagename/session id)and stays that way , the zeroclipboard version is v2.1.6 .

@asafdav
Copy link
Owner

asafdav commented Dec 9, 2014

Could you please create a plunker I can look at ?

@WesamZia
Copy link
Author

WesamZia commented Dec 9, 2014

http://plnkr.co/MS2RssJECvPnscv8kwax -- the issue doesn't show when using plunker - i think it adds the page url to its title .

@asafdav
Copy link
Owner

asafdav commented Dec 12, 2014

what IE version ?
I'll try to look into it the next time I see an IE.

@WesamZia
Copy link
Author

Version: 11.0.9600.17416 - plus try any site that uses this feature and notice its title . thanks

@harishmagnate
Copy link

Did this get fixed ? I am also facing the same issue on IE.

@radotzki
Copy link

This is a known issue with IE and Flash.
You can see this stackoverflow thread.
That what works for me:

function handleIETitle() {
        var originalTitle = document.title.split('#')[0];

        window.onload = function () {
            var titleEl = document.getElementsByTagName('title')[0];
            var docEl = document.documentElement;

            if (docEl && docEl.addEventListener) {
                docEl.addEventListener('DOMSubtreeModified', function (evt) {
                    var t = evt.target;
                    if (t === titleEl || (t.parentNode && t.parentNode === titleEl)) {
                        if (document.title !== originalTitle) {
                            document.title = originalTitle;
                        }
                    }
                }, false);
            } else {
                document.onpropertychange = function () {
                    if (window.event.propertyName === 'title') {
                        if (document.title !== originalTitle) {
                            document.title = originalTitle;
                        }
                    }
                };
            }
        };
    }

@WesamZia WesamZia changed the title Adds random serial to the html page title on IE Adds QueryString to the html page title on IE Oct 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants