File tree Expand file tree Collapse file tree
tests/docs/smoke-all/listings/target-attribute Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ _site /
2+ .quarto /
3+ /.quarto /
4+ ** /* .quarto_ipynb
Original file line number Diff line number Diff line change 1+ project :
2+ type : website
3+
4+ website :
5+ title : " Target Attribute Test"
6+
7+ format :
8+ html :
9+ theme : cosmo
10+ toc : true
Original file line number Diff line number Diff line change 1+ ---
2+ listing :
3+ type : default
4+ contents : posts/*.qmd
5+ fields :
6+ - title
7+ _quarto :
8+ tests :
9+ html :
10+ ensureHtmlElements :
11+ -
12+ - " a[href$='post-with-target.html'][target='_blank']"
13+ - " a[href$='post-without-target.html']:not([target])"
14+ ---
15+
16+ ## Default listing with target attribute test
Original file line number Diff line number Diff line change 1+ ---
2+ listing :
3+ type : grid
4+ contents : posts/*.qmd
5+ fields :
6+ - title
7+ _quarto :
8+ tests :
9+ html :
10+ ensureHtmlElements :
11+ -
12+ - " a[href$='post-with-target.html'][target='_blank']"
13+ - " a[href$='post-without-target.html']:not([target])"
14+ ---
15+
16+ ## Grid listing with target attribute test
Original file line number Diff line number Diff line change 1+ ---
2+ listing :
3+ type : table
4+ contents : posts/*.qmd
5+ fields :
6+ - title
7+ table-hover : true
8+ _quarto :
9+ tests :
10+ html :
11+ ensureHtmlElements :
12+ -
13+ - " a[href$='post-with-target.html'][target='_blank']"
14+ - " a[href$='post-without-target.html']:not([target])"
15+ - " tr[onclick*='window.open']"
16+ ---
17+
18+ ## Table listing with target attribute test
Original file line number Diff line number Diff line change 1+ ---
2+ title : Post with target blank
3+ target : " _blank"
4+ ---
5+
6+ This post should open in a new tab.
Original file line number Diff line number Diff line change 1+ ---
2+ title : Post without target
3+ ---
4+
5+ This post should open in the same tab.
You can’t perform that action at this time.
0 commit comments