
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Cannot set `val()` for select options containing tabs (`\t`) Β· Issue #2978 Β· jquery/jquery
Description:
I have a select element that contains options whose values contain tab characters. My original use case was a trailing tab (string\t), but I've also tested with leading tabs (\tstring) and tabs...
Website Age:
17 years and 9 months (reg. 2007-10-09).
Matching Content Categories {π}
- Business & Finance
- Family & Parenting
- Dating & Relationships
Content Management System {π}
What CMS is github.com built with?
Github.com is powered by WORDPRESS.
Traffic Estimate {π}
What is the average monthly size of github.com audience?
ππ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {πΈ}
Subscription Packages {π³}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {π°}
Subscription Packages {π³}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 5,013,426 paying customers.
The estimated monthly recurring revenue (MRR) is $21,056,387.
The estimated annual recurring revenues (ARR) are $252,676,649.
Wordpress Themes and Plugins {π¨}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {π}
values, tab, whitespace, issue, timmywil, attributes, set, select, behavior, added, pull, val, tabs, middle, stripcollapse, selects, sign, jquery, trailing, leading, option, commented, member, gibson, options, closed, characters, selected, string, broken, mgol, valhook, content, navigation, code, requests, actions, security, element, case, expected, work, removing, unexpected, passing, edge, bug, httpsjsfiddlenetonnucjx, directly, firefox,
Topics {βοΈ}
pull request type 7e0e730 timmywil mentioned da015d9 lock locked collapsed whitespace version content attribute collapse whitespace operation strip/collapse whitespace timmywil added net/onnucjx7/2/ net/onnucjx7/4/ middle tab character trailing tab characters code projects milestone 1 full strip pull e7af951 attributes replaced whitespace type projects trailing cases val attributes tab characters trailing tab select element str\ting interesting observations mentions ie10 include trimming partial revert return null idl attribute 100% complete relationships personal information select options trailing tabs middle works set values set val matching string directly relevant bug fix empty string comment return elem timmywil limited conversation github set `val bug behavior 2 closed
Payment Methods {π}
- Braintree
Questions {β}
- Already have an account?
- I think your fiddle is broken with respect to my comment (what's with the val attributes and replaced whitespace?
- Is it really broken, though?
Schema {πΊοΈ}
DiscussionForumPosting:
context:https://schema.org
headline:Cannot set `val()` for select options containing tabs (`\t`)
articleBody:I have a select element that contains options whose values contain tab characters. My original use case was a trailing tab (`string\t`), but I've also tested with leading tabs (`\tstring`) and tabs in the middle of non-whitespace (`str\ting`).
I called `.val('value with tab')` on the select element and expected the corresponding option to be selected since the values are identical, but no option is selected.
A few interesting observations:
- I can work around this issue for the leading and trailing cases by removing the leading or trailing tab characters from the string I pass to `.val()`, but this is unexpected since the values don't match exactly.
- Removing a middle tab character and passing that to `.val()` does not select the value, so there is no workaround for strings that have tab characters in the middle.
- The behavior is the same with jquery 2.2.1, 3.0.0-alpha1 and edge.
- With jquery 1.12.1, the leading and trailing tabs have the bug behavior but having a tab in the middle of the word and passing a matching string with a tab in the middle works as expected, so there was a regression at some point in this case.
JSFiddle: https://jsfiddle.net/onnucjx7/2/ You'll see in the console what I expect the behavior to be compared to what the behavior actually is.
I searched for "tab" and "whitespace" and didn't see anything directly relevant; I did find this issue https://github.com/jquery/jquery/issues/1902 but it only mentions IE10 and I am seeing the unexpected behavior in Firefox 44 and Chrome 48.
author:
url:https://github.com/carols10cents
type:Person
name:carols10cents
datePublished:2016-03-08T16:26:11.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:4
url:https://github.com/2978/jquery/issues/2978
context:https://schema.org
headline:Cannot set `val()` for select options containing tabs (`\t`)
articleBody:I have a select element that contains options whose values contain tab characters. My original use case was a trailing tab (`string\t`), but I've also tested with leading tabs (`\tstring`) and tabs in the middle of non-whitespace (`str\ting`).
I called `.val('value with tab')` on the select element and expected the corresponding option to be selected since the values are identical, but no option is selected.
A few interesting observations:
- I can work around this issue for the leading and trailing cases by removing the leading or trailing tab characters from the string I pass to `.val()`, but this is unexpected since the values don't match exactly.
- Removing a middle tab character and passing that to `.val()` does not select the value, so there is no workaround for strings that have tab characters in the middle.
- The behavior is the same with jquery 2.2.1, 3.0.0-alpha1 and edge.
- With jquery 1.12.1, the leading and trailing tabs have the bug behavior but having a tab in the middle of the word and passing a matching string with a tab in the middle works as expected, so there was a regression at some point in this case.
JSFiddle: https://jsfiddle.net/onnucjx7/2/ You'll see in the console what I expect the behavior to be compared to what the behavior actually is.
I searched for "tab" and "whitespace" and didn't see anything directly relevant; I did find this issue https://github.com/jquery/jquery/issues/1902 but it only mentions IE10 and I am seeing the unexpected behavior in Firefox 44 and Chrome 48.
author:
url:https://github.com/carols10cents
type:Person
name:carols10cents
datePublished:2016-03-08T16:26:11.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:4
url:https://github.com/2978/jquery/issues/2978
Person:
url:https://github.com/carols10cents
name:carols10cents
url:https://github.com/carols10cents
name:carols10cents
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:4
interactionType:https://schema.org/CommentAction
userInteractionCount:4
External Links {π}(8)
- What's the financial gain of https://github.blog?
- What are the total earnings of https://jsfiddle.net/onnucjx7/2/?
- What's the income generated by https://jsfiddle.net/m_gol/onnucjx7/3/ each month?
- Profit of https://jsfiddle.net/onnucjx7/4/
- What's the financial intake of https://html.spec.whatwg.org/multipage/forms.html#dom-option-value?
- What are the earnings of https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace?
- Explore the financials of https://html.spec.whatwg.org/multipage/forms.html#dom-option-text
- What's the income of https://www.githubstatus.com/?
Analytics and Tracking {π}
- Site Verification - Google
Libraries {π}
- Clipboard.js
- D3.js
- GSAP
- jQuery
- Lodash
Emails and Hosting {βοΈ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net