Respec: ReSpec intercepting button onclick?

Created on 5 Feb 2019  路  10Comments  路  Source: w3c/respec

Important info

Description of problem

The spec uses an "onclick" in buttons used for tabbing in examples (e.g., example 3. The onclick event is not detected for these buttons, although it was recently. Interestingly, if the spec is saved to HTML, the events are triggered, and tabbing works.

The code that does this is inline in the spec here. You can see how it should work in the latest published spec here, or by saving the editors draft and trying there.

bug

Most helpful comment

Working, thanks @saschanaz! 鈽猴笍

All 10 comments

cc/ @iherman

I think #2050 is the culprit. We should only reindent <pre>, not everything in <aside>.

I'm still seeing the problem in 24.3.0, has the fix been released? For example, click on tabs in https://w3c.github.io/json-ld-syntax/#example-30-using-vocabularies.

Confirmed. Reopening.

Greg, as a temporary work around, would it be possible for you to make the modifications after ReSpec is done? (I.e., using postProcess).

Note for when we try to fix this: using hyperHTML.bind() on the div should retain the event handler.

@marcoscaceres The issue here is that #2082 has not been released yet.

Edit: not 馃槄

oh, my bad. I thought I'd released it!!!

Doing release right now.

Working, thanks @saschanaz! 鈽猴笍

Was this page helpful?
0 / 5 - 0 ratings

Related issues

marcoscaceres picture marcoscaceres  路  4Comments

greenkeeper[bot] picture greenkeeper[bot]  路  4Comments

xfq picture xfq  路  4Comments

marcoscaceres picture marcoscaceres  路  5Comments

saschanaz picture saschanaz  路  3Comments