1007 Commits
Author SHA1 Message Date
Peter Burns 810b3fbd56 Update version numbers. 2024-10-07 14:10:29 -07:00
Peter Burns 3c2f7591c5 Fix an accidentally quadratic reduce(concat) in FlattenedNodesObserver (#5739)
Found by @mvanbem-goog debugging a perf issue in Gerrit
2024-09-16 15:13:03 -07:00
Russell Bicknell 2cbb3d2b0c [ci skip] bump to 3.5.1 2022-06-03 14:51:13 -07:00
Russell Bicknell d69041cc7b _valueToNodeAttribute converts the empty string to trustedTypes.emptyScript before setting, if available. 2022-06-01 15:30:41 -07:00
Russell Bicknell ce474db990 Adds Trusted Types support for reflected boolean properties. 2022-06-01 14:52:14 -07:00
Russell Bicknell a800a1a9d4 [ci skip] bump to 3.5.0 2022-05-18 12:01:31 -07:00
Russell Bicknell adc6d51723 Upstream http://cl/374717449 2022-04-27 15:37:02 -07:00
Russell Bicknell 96897876a2 Upstream http://cl/362104095 2022-04-27 15:32:51 -07:00
Russell Bicknell 4036db442b Upstream http://cl/368587394 2022-04-27 15:30:54 -07:00
Russell Bicknell 2445554f4f Upstream http://cl/397536696 2022-04-27 15:18:29 -07:00
Russell Bicknell 4a85c7f97b Upstream http://cl/374930792 2022-04-27 15:14:14 -07:00
Russell Bicknell 8582dd6449 Upstream http://cl/438642754 2022-04-27 15:06:46 -07:00
Russell Bicknell 067dd30208 Upstream http://cl/387624221 2022-04-27 15:04:27 -07:00
Russell Bicknell d0d39b8d88 Upstream http://cl/420889188 2022-04-27 15:00:33 -07:00
Russell Bicknell ec36597fb0 Upstream http://cl/416087593 2022-04-27 14:59:22 -07:00
Ikko Ashimine 7b37193e04 Fix typo in dom-repeat.js
reseting -> resetting
2022-02-09 22:58:00 +09:00
Peter Burns 10220c9af1 Add support for TrustedTypes (#5692)
* Add support for TrustedTypes to html-tag.js

This avoids setting innerHTML to a string.

* Comment on why .slice() the  XMLSerializer output

* Handle data binding Trusted Types into attributes

Fixes #5648

* Lint clean
2021-08-26 12:37:17 -07:00
Ikko Ashimine 5c06ae9bc0 Fix typo in disable-upgrade-mixin.js
intialize -> initialize
2021-08-10 23:03:50 +09:00
Steven Orvell 2b0494a9c4 Fix Polymer.dom(el).attachShadow/shadowRoot 2021-07-09 18:05:09 -07:00
Ikko Ashimine 69eb8a7a71 Fix typo in dom-module.js
accomodate -> accommodate
2021-05-26 11:14:14 +09:00
Jacob Reid 1e9be28d74 Fix SyntaxError
Without the quotes in safari you get the following error: SyntaxError: The string did not match the expected pattern.
2021-01-05 14:49:20 -07:00
Russell BicknellandPhil Harnish 2515cd215f Upstream internal error suppression.
Co-authored-by: Phil Harnish <philharnish@gmail.com>
2020-11-17 11:58:44 -08:00
Kevin Schaaf 32d7d61d4f Cancel chunking when disconnected. Fixes #5667 2020-07-01 12:03:13 -07:00
Kevin Schaaf 38f19b85ff Merge branch 'master' into 5660-template-function 2020-05-19 23:25:49 -07:00
Kevin Schaaf 22ac86a8e3 Accept function in legacy _template field for template parsing. Fixes #5660 2020-05-14 16:21:23 -07:00
Russell Bicknell 1e296957ed Merge remote-tracking branch 'origin/master' into setAttribute-TrustedURL 2020-05-13 15:13:13 -07:00
Russell Bicknell 9e8df6821b Upstream internal type differences. 2020-05-13 14:24:51 -07:00
Russell Bicknell 00b36709b5 Remove types from LegacyElementMixin's overridden setAttribute and removeAttribute. 2020-05-08 16:20:14 -07:00
Russell Bicknell 12fa1b5080 [ci skip] bump to 3.4.1 2020-04-29 16:23:49 -07:00
Russell Bicknell 024ab01ee8 Add type for DomApiNative's setAttribute method. 2020-04-29 15:49:56 -07:00
Russell Bicknell e717f0f060 Remove gen-typescript-declarations; manually add LegacyElementMixin's setAttribute type. 2020-04-29 14:07:21 -07:00
Russell Bicknell 8b2ea7bce2 Remove "DO NOT EDIT" warning comments. 2020-04-29 13:57:09 -07:00
Russell Bicknell ec7b7c5541 Track TypeScript declarations. 2020-04-29 13:39:09 -07:00
Russell Bicknell 604856b2f1 Update Closure types for overridden setAttribute in LegacyElementMixin. 2020-04-28 16:00:58 -07:00
Russell Bicknell 05878b673c Merge pull request #5649 from Polymer/compiler-warnings
Fix a couple more compiler warnings
2020-04-28 14:32:28 -07:00
Russell Bicknell 370ae5ebab Add method / parameter descriptions. 2020-04-27 18:43:35 -07:00
Russell Bicknell c8715b50b9 Fix TypeScript breakages by specifying types for overridden setAttribute and getAttribute. 2020-04-27 18:35:14 -07:00
Peter Burns ad2bca189f Fix a couple more compiler warnings
Fixes warnings in some internal builds.
2020-04-27 10:21:48 -07:00
Russell Bicknell 0858531193 [ci skip] bump to 3.4.0 2020-04-23 15:09:00 -07:00
Russell Bicknell 33e149863e shareBuiltCSSWithAdoptedStyleSheets -> useAdoptedStyleSheetsWithBuiltCSS 2020-04-06 14:10:57 -07:00
Russell Bicknell d0848d83e2 formatting 2020-04-02 17:39:48 -07:00
Russell Bicknell c0813cd3d3 Fix incorrect JSDoc param name. 2020-04-02 17:33:27 -07:00
Russell Bicknell bdd765810a Gate feature behind shareBuiltCSSWithAdoptedStyleSheets; update tests. 2020-04-02 17:23:57 -07:00
Russell Bicknell 2fc9062d83 Add shareBuiltCSSWithAdoptedStyleSheets global setting 2020-04-02 17:17:10 -07:00
Peter Burns 20b207e142 Annotate more return types as !defined (#5642) 2020-03-09 17:59:22 -07:00
Kevin Schaaf ddb37df985 Ensure any previously enqueued rAF is canceled when re-rendering.
Also, use instances length instead of renderedItemCount since it will be undefined on first render.
2020-03-04 22:49:16 -08:00
Kevin Schaaf d92ff92fb2 Improve comment. 2020-03-04 11:33:19 -08:00
Kevin Schaaf b5664cba10 Simplify by making limit a derived value from existing state.
This centralizes the calculation of limit based on changes to other state variables.
2020-03-04 11:20:57 -08:00
Kevin Schaaf 1d96db3c38 When re-enabling, ensure __limit is at a good starting point and add a test for that.
Also:
* Ensure `__itemsArrayChanged` is cleared after every render.
* Enqueue `__continueChunkingAfterRaf` before notifying renderedItemCount for safety
2020-03-02 23:41:12 -08:00
Kevin Schaaf 60f6ccfb7d Ensure limit is reset when initialCount is disabled.
Note that any falsey value for initialCount (including `0`) is interpreted as "chunking disabled". This is consistent with 1.x logic, and follows from the logic of "starting chunking by rendering zero items" doesn't really make sense.
2020-03-02 22:44:19 -08:00