You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A-content/domInteracting with the DOM from web contentE-less-complexStraightforward. Recommended for a new contributor.I-cleanupNo impact; the issue is one of maintainability or tidiness.
Things like Document::Get/SetOnload and all of the other handlers (such as on EventTarget, HTMLBodyElement, Window, etc.) are all copy-pasted and should be simple to turn into macros.
We would need concat_idents! to define a getter & setter function name, but concat_idents! cannot use to define a function name ( rust-lang/rust#12249 ) now.
But if we take all function names lik event_handler!(click, EventHandlerNonNull, GetOnclick, SetOnclick), we would fix this now (Of course we should leave FIXME).
A-content/domInteracting with the DOM from web contentE-less-complexStraightforward. Recommended for a new contributor.I-cleanupNo impact; the issue is one of maintainability or tidiness.
Activity
tetsuharuohzeki commentedon Oct 22, 2014
We would need
concat_idents!to define a getter & setter function name, butconcat_idents!cannot use to define a function name ( rust-lang/rust#12249 ) now.tetsuharuohzeki commentedon Oct 22, 2014
But if we take all function names lik
event_handler!(click, EventHandlerNonNull, GetOnclick, SetOnclick), we would fix this now (Of course we should leaveFIXME).auto merge of #3776 : saneyuki/servo/macro, r=jdm