4efc0af119
- Remove TODO comment to add a warning if a Document is passed, since a document will always be required when operating on something other than the main page (e.g., for multiples). - Always return a string instead of null. A translator can always use querySelector() if it really needs to know if a node exists. - Automatically trim the returned string - Add innerText() function that uses .innerText instead of .textContent, since there are situations where that might be helpful. Some of those we currently address with trimInternal(), but there can be other cases where .innerText gives cleaner, user-centric output. Translators won't be able to rely on these changes for a while, so we'll need to be careful to watch for problems here, or translators will need to include a v3 polyfill. Addresses zotero/translators#1913 |
||
---|---|---|
.. | ||
content | ||
locale | ||
skin/default |