Comments (19)
We are talking about duplication inside the TB68 add-on guide. I did add the info to the TB78 guide, as it throws errors now.
Let me sleep over this. I probably extend the info box in the TB68 guide.
from developer-docs.
https://developer.thunderbird.net/add-ons/updating/tb68/changes#removed-xbl-bindings
from developer-docs.
That is part of the XBL removal which was done in TB68. This is currently above my head. What did you use it for?
from developer-docs.
It was part of this piece of code which tried several ways of getting the message subject, each of which worked with different versions of TB or SM. The removal happened in TB 72 according to the bug page.
from developer-docs.
This document which is linked in the TB68 guide has some info about this:
https://wiki.mozilla.org/Thunderbird/de-xbl
Is that sufficient?
from developer-docs.
@jobisoft :
No, because :
- extension authors don't use that method only for their own XBL elements. They may think of it as merely another DOM search utility.
- Because this removal is a 68->78 change.
- Because, glancing at that document, it's not at all clear that this is a change to notice. The TB 68->78 changes page has a nice header with each removed API.
from developer-docs.
It was part of this piece of code
Which code? Can you link?
from developer-docs.
I am not saying you are wrong. But it appears the removed function in TB72 was already "dead code" (always returned null pointer) so the functionality stopped long ago. With TB72 it would throw now that an unknown function has been used.
This is obviously a function related to XBL.
from developer-docs.
@jobisoft : this. It was already failing in what it was trying to do in v68, but it didn't throw an exception. Also, it was necessary/useful in earlier versions.
For the last few years, what really needs to be used is
displayedMessageSubject = document.getElementById('expandedsubjectBox').textContent;
but for multi-version-support, one needs both the exists code and this line as yet another alternative.
from developer-docs.
So my assumption is true :-)
Woohoo: A lot of add-ons are still using that:
https://github.com/search?q=getAnonymousElementByAttribute++path:/xall/x68+repo%3Acleidigh%2FThunderKdB&type=Code
So what did you use it for? Why not just use getElementById or something?
from developer-docs.
So what did you use it for? Why not just use getElementById or something?
The field with the text used to be an anonymous element within the XBL subject box. So, I couldn't get it byId().
from developer-docs.
I do not think there is more to say, is there?
from developer-docs.
I do not think there is more to say, is there?
Well:
- If this stopped working in TB 68, perhaps there needs to be a note about these in the TB 68 document.
- The links you added are to the German version of the documentation.
from developer-docs.
-
I think it is, isn't it? There is a section about Removed XBL bindings and there is a linked document which includes the removal/replacement of getAnonymousElementByAttribute
-
Thanks! That happens way to often. Fixed.
from developer-docs.
- I think it is, isn't it? There is a section about Removed XBL bindings and there is a linked document which includes the removal/replacement of getAnonymousElementByAttribute
Well, not effectively. I mean, there is nothing inherently XBL'ish about a method named getAnonymousElementByAttribute()
. When I was updating my extensions for TB 68 it didn't occur to me that to follow that link, since I as far as I was concerned, I wasn't using any XBL. (And I didn't get the error because it was being masked by something else.)
from developer-docs.
Maybe it's not apparent, but the whole concept of anonymous content is (was) XBL only.
from developer-docs.
Hm, the very first google search result of "MDN getAnonymousElementByAttribute()" returns:
https://developer.mozilla.org/en-US/docs/Archive/Mozilla/XBL/XBL_1.0_Reference/DOM_Interfaces
which tells you this method belongs to the XBL stuff. I hesitate to duplicate the information ...
from developer-docs.
I hesitate to duplicate the information ...
There's no problem with a bit of duplication between the 78-changes page and other pages which describe these changes in a different context. But it's your call I guess.
@mkmelin : I understand this now, but it's not obvious from the method name. I had originally copy-pasted some code which used getAnonymousElementByAttribute()
, and with the passage of time had not remembered that code may have had something to do with XBL.
from developer-docs.
I can live with that.
from developer-docs.
Related Issues (20)
- build instructions do not work as stated in "getting started" HOT 7
- comm-beta build fails on fresh environment HOT 3
- Building esr versions of Thunderbird addendum
- Dead links in developer documentation about E-mail autoconfiguration HOT 2
- Explain why/if loading of customElements.js no longer necessary? HOT 1
- [Name Suggestion] Name Suggestion For Q4 2023's "K-9 -> Thunderbird For Android" Release.
- "Adapt to TB 115" page explains 3-pane window restructuring poorly HOT 1
- Better documentation of editing omni.ja
- "Adapt to TB 115" page needs to mention -moz-image-region going away HOT 1
- Missing code in "hello-world" extension tutorial HOT 3
- add link to kb article on how to open console logs
- allow change of default ImapMail folder location via GPO or Policies File HOT 1
- broken links: writing mochitest tests HOT 1
- mac build instructions do not work HOT 7
- calendar notifications not working HOT 1
- Commit message improvements
- CPG Link? HOT 1
- ics import error HOT 1
- OnProgress() -> onProgress() HOT 1
- Remove section about supported Manifest Keys and supported APIs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from developer-docs.