dom icon indicating copy to clipboard operation
dom copied to clipboard

Adds document title element

Open smoyer64 opened this issue 5 years ago • 2 comments

Resolves #46

smoyer64 avatar Jun 03 '19 16:06 smoyer64

Sorry, I don't think this should be added. This change unconditionally creates a title element in the DOM, which might or might not be desired.

dennwc avatar Jun 03 '19 16:06 dennwc

Ah ... that it does (and leaves it empty). The one in my library is Title() so it only creates the element if you ask for it. I was also looking into the failing unit test - the underlying code compiles and then works in the browser.

Would you be open to Title() and SetTitle() functions for this? ... the <title> element (and others) are "special": https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title. I suppose another alternative is to export getFirstWithTag which is about 70% of the code I discovered was duplicated in my library.

smoyer64 avatar Jun 03 '19 18:06 smoyer64