browserengineering/book

Clicking on links in Chapter 15 draft doesn't work

pavpanchekha opened this issue · 0 comments

Clicking on links was broken by the dispatch change. The core reason is thus:

  • When you click on something, we resolve it to a /layout/ object
  • You then walk up and dispatch based on the /element/ tree
  • This is important because an <a> tag does not have a layout object in our browser

My best suggestion is that we undo the dispatch changes, which is also shorter.