Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Issue 2727573006: Fix rendering functions of "properties" of an api object (Closed)

Created:
3 years, 9 months ago by lazyboy
Modified:
3 years, 9 months ago
Reviewers:
Devlin
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix rendering functions of "properties" of an api object There aren't many api properties that have functions, so this wasn't thoroughly checked I'm assuming. accessibilityFeatures has one such example. Rendering <table> content (body) without <tr> is bad idea, it messes up rendering the table. What happens in the broken case for accessibilityFeatures is that rows (2nd and onwards) are pushed out of table t1 below: <table id="t1"> <tr><td> <table id="t2"> <!-- no tr/td --> <table><tr><td>A</td></tr></table> </table> </td></tr> <tr><td>This row will be pushed out of t1</td></tr> </table> Live example can be seen at: http://lazyboy.github.io/pages/markup/valid_table.html http://lazyboy.github.io/pages/markup/invalid_table.html Therefore this CL wraps function template with <tr><td> when called from api_property template. The function template already have condition to add <tr><td> though, based on parentName param. However there are cases where we want to preserve that (api_property template). It seemed safer to me to wrap the callsite. BUG=693255 Test=Check largeCursor documentation in https://developer.chrome.com/apps/accessibilityFeatures#property-largeCursor The entry should be rendered within a table. Review-Url: https://codereview.chromium.org/2727573006 Cr-Commit-Position: refs/heads/master@{#456950} Committed: https://chromium.googlesource.com/chromium/src/+/2691c6929de42bf5845162fe9df31270c9b38b18

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M chrome/common/extensions/docs/templates/private/api_property.html View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 13 (9 generated)
lazyboy
3 years, 9 months ago (2017-03-03 02:27:35 UTC) #3
Devlin
lgtm, nice!
3 years, 9 months ago (2017-03-03 19:35:37 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2727573006/1
3 years, 9 months ago (2017-03-15 01:49:02 UTC) #10
commit-bot: I haz the power
3 years, 9 months ago (2017-03-15 02:11:40 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/2691c6929de42bf5845162fe9df3...

Powered by Google App Engine
This is Rietveld 408576698